﻿<UserControl x:Class="LiSAClient.WpfClient.View.Projects.ProjectsCardrow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:projects ="clr-namespace:LiSAClient.WpfClient.View.Projects"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="500">
    <UserControl.InputBindings>
        <MouseBinding Gesture="LeftDoubleClick" Command="{Binding DataContext.ShowProject, RelativeSource={RelativeSource AncestorType=projects:ProjectDetails}}"/>
    </UserControl.InputBindings>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="150"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto" MinWidth="150"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column="0" Text="{Binding ProjectTitle}" Padding="0"/>
        <TextBlock Grid.Column="1" Text="{Binding ProjectDescription}" Padding="0"/>
        <TextBlock Grid.Column="2" Text="{Binding ProjectLead.FullName}" Padding="0"/>
    </Grid>
</UserControl>
